<%@page import="org.apache.commons.lang3.StringUtils"%>
<%@ page language="java" contentType="text/html; charset=UTF-8"
    pageEncoding="UTF-8"%>
<%@include file="user-index-head.jsp"%> 
<div class="content">
          <div class="cLine">
            <div class="pageNavigator left">
  <a href='<%=path%>/user/text!add.action' title='新增文本自定义回复' class='btnGrayS vm bigbtn'><img src="<%=path%>/images/text.png" class="vm" />新增文本自定义回复</a>　
  <a href='' title='新增图文自定义回复' class='btnGrayS vm bigbtn'><img src="<%=path%>/images/pic.png" class="vm" />新增图文自定义回复</a>　
  <!--<a class="btnGrayS vm bigbtn" onclick="location.href='index.php?ac=csv&id=9379';" ><img src="<%=path%>/images/import.png" class="vm" />批量导入文本</a>　<a class="btnGrayS vm bigbtn" onclick="location.href='index.php?ac=outtxt&page=1&type=0&classid=0&wxid=gh_858dwjkeww5';" ><img src="{iMicro::RES}/images/export.png" class="vm" />批量导出本页文本结果</a>-->
            </div>
          
            <div class="clr"></div>
          </div>
          <div class="msgWrap">
          <form method="post"  action="index.php?ac=importtxt&amp;id=9379&amp;wxid=gh_858dwjkeww5" id="info" >
          <input name="delall"  type="hidden" value="del" />
           <input name="wxid"  type="hidden" value="gh_858dwjkeww5" />
            <TABLE class="ListProduct" border="0" cellSpacing="0" cellPadding="0" width="100%">
              <THEAD>
                <TR>
<TH >编号</TH>
<TH class="keywords">关键词</TH>
<TH class="answer">回答</TH>
                    <TH  class="category" >匹配类型</TH>
                    <TH class="time">浏览次数</TH>
<TH class="time">时间</TH>
                     
<TH class="edit norightborder">操作</TH>
                </TR>
              </THEAD>
              <TBODY>
                <TR>
				</TR>
				
				<c:forEach items="${page.content}" var="vo">
				<tr>
                  <td width="40px" align="center"> <input type="checkbox" name="del_id[]" value="${vo.id }"></td>
                  <td width="70px" align="center"> ${vo.keyword}</td>
                  <td><div class="answer_text">${vo.textResponse.content}</div></td>
                  <td width="100px" align="center">
                  <c:choose>
                  	<c:when test="${vo.textResponse.type=='1'}">完全匹配</c:when>
			        <c:when test="${vo.textResponse.type=='2'}"> 模糊匹配  </c:when>
                 </c:choose>
                  </td>
                  <td width="30px" align="center">${vo.textResponse.click}</td>
                    <td width="150px" align="center">${vo.textResponse.updateTime}</td>
                   <td class="norightborder" align="center"> <a href="<%=path%>/user/text!edit.do?id=${vo.id }" title="编辑文本">编辑</a> <a href="<%=path%>/user/text!delete.do?id=${vo.id }">删除</a></td>
                </tr>
                </c:forEach>
                             
              </TBODY>
            </TABLE>
           </form> 
           <script>
   function checkvotethis() {
var aa=document.getElementsByName('del_id[]');
var mnum = aa.length;
j=0;
for(i=0;i<mnum;i++){
if(aa[i].checked){
j++;
}
}
if(j>0) {
document.getElementById('info').submit();
} else {
alert('未选中任何文章或回复！')
}
}

   </script>
          </div>
          <div class="cLine">
              <div class="pageNavigator right">
                 <div class="pages">${page.currPage}/${page.pages}页 <span><c:if test="${page.currPage<page.pages}"><a href="<%=path%>/user/classify!index.do?p=${page.currPage+1}">下一页</a></c:if></span>
  <span><c:if test="${page.currPage>1}"><a href="<%=path%>/user/classify!index.do?p=${page.currPage-1}">上一页</a></c:if></span></div>
              </div>
            <div class="clr"></div>
          </div>
        </div>

        <div class="clr"></div>
      </div>
    </div>
  </div>
  <script>

function checkAll(form, name) {
for(var i = 0; i < form.elements.length; i++) {
var e = form.elements[i];
if(e.name.match(name)) {
e.checked = form.elements['chkall'].checked;
}
}
}


  </script>
  <!--底部-->
  	</div>
<include file="Public:footer"/>